package #package#;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import #dao#;
import #model#;
import com.unionpay.mpds.service.#serviceName#;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class #serviceName#Impl extends BaseServiceImpl implements #serviceName# {
	
	@Autowired
	private #daoName# #daoEntity#;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public #entityName# get(String id) {
		return #daoEntity#.get(id);
	}
	
	public List<#entityName#> getAll() {
		return #daoEntity#.findAll();
	}
	
	public List<#entityName#> findByParam(int size, Map<String, Object> params) {
		return #daoEntity#.findListByParamMap(size, params);
	}
	
	public Pager<#entityName#> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	#daoEntity#.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(#entityName# entity) {
		#daoEntity#.save(entity);
	}
	
	public void update(#entityName# entity) {
		#daoEntity#.update(entity);
	}
	
	public void delete(String id) {
		#daoEntity#.delete(id);
	}
	
}